<%-- 
    Document   : gio-hang
    Created on : Dec 16, 2012, 9:06:07 AM
    Author     : USER
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Nhà sách Nhân - Sĩ</title>
        <link type="text/css" rel="stylesheet" href="css/style.css"/>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div id="menu-header-right">
                    <ul>
                        <li><strong>TÌM KIẾM</strong></li>
                        <li><input name="" type="text" /></li>
                        <li> <select name="">
                                <option value="1">Sách Tiếng Việt</option>
                                <option value="2">Sách Tiếng Anh</option>
                            </select>
                        </li>
                        <li><input name="btnTim" type="button" value="Tìm" id="button" /></li>
                    </ul>
                </div>
                <div id="gio-hang">
                    <img src="image/gio-hang.jpg"/>
                    <div>Số tiền: 2000000 đ</div>

                </div>
                <div id="logo-slogan-header">
                    <div id="logo-header">
                        <img src="image/flower1.png"/>
                        <h3>Nhà sách Nhân - Sĩ</h3>
                    </div>
                    <div id="slogan-header">
                        <h3>SÁCH - NGƯỜI BẠN ĐỒNG HÀNH TRI THỨC</h3>
                    </div>
                </div>
                <div id="quangcao">
                    Hình quảng cáo
                </div>
                <div id="menu-header">
                    <ul id="nav">
                        <li><s:a action="TrangChu">TRANG CHỦ</s:a></li>
                        <s:iterator var="loaiSach" value="%{#request.listLoaiSach}">
                            <li><s:a href="#"><s:property value="#loaiSach.tenLoaiSach"/></s:a>
                                    <ul>

                                    <s:iterator var="dm" value="#loaiSach.danhMucs">
                                        <li><s:a action="xem-danh-muc.action?maDanhMuc=%{#dm.maDanhMuc}">
                                                <s:property value="#dm.tenDanhMuc"/>
                                            </s:a>
                                        </li>

                                    </s:iterator>
                                </ul>
                            </li>
                        </s:iterator>

                    </ul>

                </div>
            </div>
            <div id="content-sach-chi-tiet">
                <form action="#" method="get">
                    <table width="100%" border="1">
                        <tr align="center" bgcolor="#CCCCCC">
                            <td width="10%">Xóa</td>
                            <td width="43%">Tên sách</td>
                            <td width="11%">Số lượng</td>
                            <td width="16%">Đơn giá</td>
                            <td width="20%">Thành tiền</td>
                        </tr>
                        
                        <s:iterator var="s" value="gioHang">
                            <tr>
                                <td align="center"><input type="checkbox" name="cbXoa" id="cbXoa" value="<s:property value="#s.maSach"/>"/>
                                    <label for="cbXoa"></label></td>
                                
                                <td><s:property value="#s.tenSach"/>
                                    <input type="submit" name="btnXoaTatCa" id="btnXoa" value="Xóa sách nàys" />
                                </td>
                                <td><label for="tbSoLuong"></label>
                                    <input type="text" name="tbSoLuong" id="tbSoLuong" value="<s:property value="#s.soLuongBan"/>"/></td>
                                <td><s:property value="#s.giaBan"/></td>
                                <td><s:property value="thanhTien"/></td>
                                
                            </tr>
                        </s:iterator>
                        
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td><strong>Tổng tiền</strong></td>
                            <td><s:property value="tongTien"/> VNĐ</td>
                        </tr>
                    </table>

                    </br>
                    <table width="100%" border="1">
                        <tr>
                            <td>
                                <a href="#">
                                    <input type="submit" name="btnTiepTucMua" id="btnTiepTucMua" value="Tiếp tục mua" />
                                </a>
                            </td>
                            <td><input type="submit" name="btnXoaTatCa" id="btnXoaTatCa" value="Xóa tất cả" /></td>
                            <td><input type="submit" name="btnCapNhat" id="btnCapNhat" value="Cập nhật" /></td>
                            <td><input type="submit" name="btnThanhToan" id="btnThanhToan" value="Thanh toán" /></td>
                        </tr>
                    </table>


                </form>
            </div>
            <div id="footer">
                footer
            </div>

    </body>
</html>

